package com.yiqihui.my_shiro_jwt_redis.util;

import org.apache.commons.beanutils.NestedNullException;
import org.apache.commons.beanutils.PropertyUtils;

public class QgBeanUtil {

    public static Object getPropertyValue(Object bean, String property) {
        if (CommonUtil.isNull(property)) {
            return null;
        } else {
            Object value = null;

            try {
                value = PropertyUtils.getProperty(bean, property);
            } catch (NestedNullException var4) {
            } catch (Exception var5) {
                var5.printStackTrace();
            }

            return value;
        }
    }
}
